import org.apache.spark.SparkContext
import org.apache.spark.rdd.RDD
import org.apache.spark.sql.SparkSession

object HelloWorld {
  def main(args: Array[String]): Unit = {
    val ss: SparkSession = SparkSession.builder()
      .appName(HelloWorld.getClass.getSimpleName)
      .master("local[*]").getOrCreate()

    val sc: SparkContext = ss.sparkContext
    val rdd: RDD[String] = sc.makeRDD(Seq("a", "b", "c"))
    println(rdd.count())

    ss.close()
  }

}
